#include "Dame.h"

#include <string>

using std::string;

string Dame::nom("Dame");

Dame::Dame(Echiquier * E, Position P, bool couleur) :Piece(E,P,couleur), Fou(E,P,couleur), Tour(E,P,couleur)
{
	object = new ReineGL (this,couleur) ;
}
Dame::~Dame(){
	if (object){
		delete object;
		object = NULL ;
	}
}
char Dame::rendu() const
{
	return (c?'D':'d');
}

const string& Dame::toString()const
{
	return nom;
}

void Dame::majDeplacements()
{
    cloue = false;
    Fou::majDeplacements();
    Tour::majDeplacements();
}

void Dame::majAtk()
{
    Fou::majAtk();
    Tour::majAtk();
}

Piece* Dame::clone(Echiquier* ne) const
{
	Piece* clone = new Dame(ne,p,c);
	clone->getDep() = dep;
	clone->getAtk() = atk;
	clone->getpAtk() = pAtk;
	clone->getpDef() = pDef;
	return clone;
}

